package com.whc.gulimall.product.dao;

import com.whc.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author wanghaochen
 * @email angaoen@outlook.com
 * @date 2022-03-05 00:18:53
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    /**
     * 通过分组id列表获取到属性id列表
     *
     * @param attrGroupIds 分组id列表
     * @return 属性id列表
     */
    List<Long> listAttrIdsByAttrGroupIds(@Param("ids") List<Long> attrGroupIds);
}
